//package com.anyou.mall.store.controller;
//
//import java.util.List;
//import javax.servlet.http.HttpServletResponse;
//import org.springframework.security.access.prepost.PreAuthorize;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.PutMapping;
//import org.springframework.web.bind.annotation.DeleteMapping;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//import com.anyou.common.annotation.Log;
//import com.anyou.common.core.controller.BaseController;
//import com.anyou.common.core.domain.ApiResult;
//import com.anyou.common.enums.BusinessType;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import com.anyou.mall.store.entity.StoShopStore;
//import com.anyou.mall.store.service.IStoShopStoreService;
//import com.anyou.common.utils.poi.ExcelUtil;
//import com.anyou.common.core.page.TableDataInfo;
//
///**
// * 商家店铺Controller
// *
// * @author ruoyi
// * @date 2023-09-12
// */
//@Api(tags = "商家店铺")
//@RestController
//@RequestMapping("/store/shopStore")
//public class StoShopStoreController extends BaseController
//{
//    @Autowired
//    private IStoShopStoreService stoShopStoreService;
//
//    /**
//     * 查询商家店铺列表
//     */
//    @ApiOperation("查询商家店铺列表")
//    @PreAuthorize("@ss.hasPermi('store:shopStore:list')")
//    @GetMapping("/list")
//    public TableDataInfo<List<StoShopStore>> list(StoShopStore stoShopStore)
//    {
//        startPage();
//        List<StoShopStore> list = stoShopStoreService.selectStoShopStoreList(stoShopStore);
//        return getDataTable(list);
//    }
//
//    /**
//     * 导出商家店铺列表
//     */
//    @ApiOperation("导出商家店铺列表")
//    @PreAuthorize("@ss.hasPermi('store:shopStore:export')")
//    @Log(title = "商家店铺", businessType = BusinessType.EXPORT)
//    @PostMapping("/export")
//    public void export(HttpServletResponse response, StoShopStore stoShopStore)
//    {
//        List<StoShopStore> list = stoShopStoreService.selectStoShopStoreList(stoShopStore);
//        ExcelUtil<StoShopStore> util = new ExcelUtil<StoShopStore>(StoShopStore.class);
//        util.exportExcel(response, list, "商家店铺数据");
//    }
//
//    /**
//     * 获取商家店铺详细信息
//     */
//    @ApiOperation("获取商家店铺详细信息")
//    @PreAuthorize("@ss.hasPermi('store:shopStore:query')")
//    @GetMapping(value = "/{shopStoreId}")
//    public ApiResult<StoShopStore> getInfo(@PathVariable("shopStoreId") Long shopStoreId)
//    {
//        return ApiResult.success(stoShopStoreService.selectStoShopStoreByShopStoreId(shopStoreId));
//    }
//
//    /**
//     * 新增商家店铺
//     */
//    @ApiOperation("新增商家店铺")
//    @PreAuthorize("@ss.hasPermi('store:shopStore:add')")
//    @Log(title = "商家店铺", businessType = BusinessType.INSERT)
//    @PostMapping
//    public ApiResult add(@RequestBody StoShopStore stoShopStore)
//    {
//        return ApiResult.success(stoShopStoreService.insertStoShopStore(stoShopStore));
//    }
//
//    /**
//     * 修改商家店铺
//     */
//    @ApiOperation("修改商家店铺")
//    @PreAuthorize("@ss.hasPermi('store:shopStore:edit')")
//    @Log(title = "商家店铺", businessType = BusinessType.UPDATE)
//    @PutMapping
//    public ApiResult edit(@RequestBody StoShopStore stoShopStore)
//    {
//        return ApiResult.success(stoShopStoreService.updateStoShopStore(stoShopStore));
//    }
//
//    /**
//     * 删除商家店铺
//     */
//    @ApiOperation("删除商家店铺")
//    @PreAuthorize("@ss.hasPermi('store:shopStore:remove')")
//    @Log(title = "商家店铺", businessType = BusinessType.DELETE)
//    @DeleteMapping("/{shopStoreIds}")
//    public ApiResult remove(@PathVariable Long[] shopStoreIds)
//    {
//        return ApiResult.success(stoShopStoreService.deleteStoShopStoreByShopStoreIds(shopStoreIds));
//    }
//}
